package siestageek;

import java.util.Scanner;

public class J01Retangle {
	//사각형 면적,둘레 계산하는 프로그램
	//입력값:가로,세로,색상
	//자바의 실행 진입점
	public static void main(String[] args) {
		//		Scanner scan = new Scanner(System.in);
		//		Scanner sc = new Scanner(System.in);
		//		double width = 1.0;
		//		double height = 1.0;
		//		String color = "white";
		//		
		//		System.out.println("가로의값은?");
		//		width= scan.nextInt();
		//		System.out.println("세로의값은?");
		//		height= scan.nextInt();
		//		System.out.println("색깔은?");
		//		color = sc.nextLine(); 
		//		
		//
		//		double getArea = width*height;
		//		double getPerimeter = (width+height)*2;
		//		
		//		System.out.println("면적의 값은?"+getArea);
		//		System.out.println("둘레의 값은?"+getPerimeter);
		//		System.out.println("색깔은?"+color);
		
		
		//1. 변수 선언및 초기화
		double width=1.0; //실수
		double height=1.0; //실수
		String color = "white"; //문자열
		
		//2. 계산 및 연산
		double getArea = width*height;
		double getPerimeter=(width+height)*2;
		
		//3. 결과출력
		System.out.println(width);
		System.out.println(height);
		System.out.println(color);
		System.out.println(getArea);
		System.out.println(getPerimeter);
		
		// 시험값1 = 4,40,red
		width = 4;
		height = 40;
		color= "red";
		
		getArea = width*height;
		getPerimeter = (width+height)*2;
		
		System.out.println(width);
		System.out.println(height);
		System.out.println(color);
		System.out.println(getArea);
		System.out.println(getPerimeter);
		
		//시험값 2 = 3.5 35.9 orange
		width = 3.5;
		height = 35.9;
		color = "orange";
		
		getArea = width*height;
		getPerimeter = (width+height)*2;
		
		System.out.println(width);
		System.out.println(height);
		System.out.println(color);
		System.out.println(getArea);
		System.out.println(getPerimeter);
		
		
		
	}

}
